package com.banciyuan.bcywebview.utils.baidussp;

/**
 * Created by squall1989 on 2017/2/20.
 */

public class SSPEntity implements Comparable<SSPEntity> {

    private int alliance;
    private double weight;
    private String l1;
    private String l2;
    private int priority;
    private int strategyId;

    public SSPEntity() {
    }

    public SSPEntity copy() {
        SSPEntity sspEntity = new SSPEntity();
        sspEntity.alliance = this.alliance;
        sspEntity.weight = this.weight;
        sspEntity.l1 = this.l1;
        sspEntity.l2 = this.l2;
        sspEntity.priority = this.priority;
        sspEntity.strategyId = this.strategyId;
        return sspEntity;
    }

    public int getAlliance() {
        return alliance;
    }

    public double getWeight() {
        return weight;
    }

    public String getL1() {
        return l1;
    }

    public String getL2() {
        return l2;
    }

    public int getPriority() {
        return priority;
    }

    public int getStrategyId() {
        return strategyId;
    }

    public void setAlliance(int alliance) {
        this.alliance = alliance;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void setL1(String l1) {
        this.l1 = l1;
    }

    public void setL2(String l2) {
        this.l2 = l2;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public void setStrategyId(int strategyId) {
        this.strategyId = strategyId;
    }

    @Override
    public int compareTo(SSPEntity sspEntity) {
        int var2 = sspEntity.priority;
        return this.priority < var2 ? -1 : (this.priority > var2 ? 1 : 0);
    }


}
